package com.forlgb.powercloud.seata.common.rpc.fallback;


import com.forlgb.powercloud.seata.common.rpc.IFeignOrderClient;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class IFeignOrderClientFallback implements FallbackFactory<IFeignOrderClient> {


    @Override
    public IFeignOrderClient create(Throwable throwable) {
        log.error("远程调用订单服务失败~");
        return null;
    }
}